<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/18
 * Time: 12:03
 */
header("Content-type:text/html;charset=utf-8");
//$names = ['aa' => '张三', 'aa2' => '阿毛', 'aa3' => '李四', 'aa4' => '宝哥'];
$names = [10 => '张三', 60 => '阿毛', 30 => '李四', 25 => '宝哥'];
var_dump($names);
$a = array_reverse($names,true);
var_dump($a);